 <div id="col-sub">
	<div id="login">
		<div class="hd">
			<ul class="tab-holder ln-holder">
				<li class="selected">会员登录</li>
				<li>专家登录</li>
			</ul>
		</div>
		<div class="bd ln-content">
		<form action="http://202.106.159.90/app/appLoginAction.do" name="memberLoginForm" target="_self">
			<input type="hidden" name="method" value="login" />
			<input type="hidden" name="beanName" value="LoginFormService" />
			<input type="hidden" name="userType" value="1" />
			<input type="hidden" name="subId" value="181" />
			<p>
				<label>账 号:</label><input name="userName" type="text"id="userName"" size="22" />
			</p>
			<p>
				<label>密 码:</label><input name="passWord"type="password" id="passWord" size="24" />
			</p>
			<p>
				<label>验证码:</label><input name="randomCode"type="text" id="randomCode" size="9" style="width: 60px;"/>&nbsp;<img src="http://202.106.159.90/RandomCodeServlet" style="vertical-align: middle; cursor: pointer;" title="看不清？点击图片更换验证码！" class="captcha" />
			</p>
			<p class="fix-float">
				<button type="submit" id="memberFormSubmit" class="btn">登录</button>
				<a href="http://202.106.159.90/app/jsp/member/sinoform/memberRegistration.jsp?formId=2011082723132377981" target="_blank" class="btn">注册</a>
				<a href="#">忘记密码？</a>
			</p>
		</form>
		</div>
		<div class="bd ln-content" style="display: none;">
		<form action="http://202.106.159.90/app/appLoginAction.do" name="expertLoginForm" target="_self">
			<input type="hidden" name="method" value="login" />
			<input type="hidden" name="beanName" value="LoginFormService" />
			<input type="hidden" name="userType" value="3" />
			<input type="hidden" name="subId" value="181" />
			<p>
				<label>账 号:</label><input name="userName" type="text"id="userName"" size="22" />
			</p>
			<p>
				<label>密 码:</label><input name="passWord"type="password" id="passWord" size="24" />
			</p>
			<p>
				<label>验证码:</label><input name="randomCode"type="text" id="randomCode" size="9" style="width: 60px;" />&nbsp;<img src="http://202.106.159.90/RandomCodeServlet" style="vertical-align: middle; cursor: pointer;" title="看不清？点击图片更换验证码！" class="captcha" />
			</p>
			<p class="fix-float">
				<button type="submit" id="expertFormSubmit" class="btn">登录</button>
				<a href="http://202.106.159.90/app/jsp/expert/expertRegistration.jsp?formId=2011082723113167871" target="_blank" class="btn">注册</a>
				<a href="#">忘记密码？</a>
			</p>
		</form>
		</div>
	</div>
	<script>
	(function() {
		//简单的登录表单非空验证
		function noEmptyCheck( id, formName) {
			var formEle = document.forms[formName],
				userNameEle = formEle["userName"],
				passwordEle = formEle["passWord"],
				randomCodeEle = formEle["randomCode"];
			$("#" + id).click(function() {
				if(userNameEle.value === "" || userNameEle.value.length === 0) {
					alert("用户名不能为空！");
					return false;
				}
				if(passwordEle.value === "" || passwordEle.value.length === 0) {
					alert("密码不能为空!");
					return false;
				}
				if(randomCodeEle.value === "" || randomCodeEle.value.length === 0) {
					alert("验证码不能为空！");
					return false;
				}
			});
		}
		//会员登录验证
		noEmptyCheck("memberFormSubmit", "memberLoginForm");
		//专家登录验证
		noEmptyCheck("expertFormSubmit", "expertLoginForm");
	})();
	</script>
	<div class="quick-entries">
		{get sql="select c.* from edufe_content as c, edufe_content_rel as cr where cr.catid='2bfa0631-ad0b-102f-a1d5-2a5e5bae57a7' and cr.contentid=c.id and c.status=3 and c.siteid='master' order by c.listorder desc,c.addtime desc" rows="4"}
                        <a href="{$r['link']}" target="__blank"><img src="{$r['thumb']}"></a>
                        {/get}
	</div>
	<div id="gonggao" class="s-box">
		<div class="hd">
			{get sql="select * from edufe_category where status=99 and siteid='master' and catid='aea87b40-a858-102f-80c7-7e4d0a484dab'" rows="1"}
			<h3><i></i>{$r['catname']}</h3>
			<a href="{$r['url']}" class="more">&gt;&gt;更多</a>
			{/get}
		</div>
		<div class="bd">
			<ul class="info-list">
				{get sql="select c.* from edufe_content as c, edufe_content_rel as cr where cr.catid='aea87b40-a858-102f-80c7-7e4d0a484dab' and cr.contentid=c.id and c.status=3 and c.siteid='master' order by c.listorder desc,c.addtime desc" rows="4"}
				<li><a href="content_{$r['id']}.html">{str_cut($r['title'],23)}</a></li>
				{/get}
			</ul>
		</div>
	</div>
	<div id="dianbo" class="s-box">
		<div class="hd">
			{get sql="select * from edufe_category where status=99 and siteid='master' and catid='2285a5b5-a859-102f-80c7-7e4d0a484dab'" rows="1"}
			<h3><i></i>{$r['catname']}</h3>
			<a href="{$r['url']}" class="more">&gt;&gt;更多</a>
			{/get}
		</div>
		<div class="bd">
			<ul class="video-list">
				{php $i=0;}
				{get sql="select c.* from edufe_content as c, edufe_content_rel as cr where cr.catid='2285a5b5-a859-102f-80c7-7e4d0a484dab' and cr.contentid=c.id and c.status=3 and c.siteid='master' order by c.listorder desc,c.addtime desc" rows="4"}
					{if ($i==0)}
					<li class="first"><a href="content_{$r['id']}.html"><img src="{$r['thumb']}" width="187" height="127" /></a></li>
					{else}
						<li><a href="content_{$r['id']}.html">{str_cut($r['title'],20)}</a></li>
					{/if}
					{php $i++;}
				{/get}
			</ul>
		</div>
	</div>
	<div id="xiazai" class="s-box">
		<div class="hd">
			{get sql="select * from edufe_category where status=99 and siteid='master' and catid='567c9a24-a858-102f-80c7-7e4d0a484dab'" rows="1"}
			<h3><i></i>资料下载</h3>
			<a href="{$r['url']}" class="more">&gt;&gt;更多</a>
			{/get}
		</div>
		<div class="bd">
			<ul class="info-list">
				{get sql="select c.* from edufe_content as c, edufe_content_rel as cr where cr.catid='567c9a24-a858-102f-80c7-7e4d0a484dab' and cr.contentid=c.id and c.status=3 and c.siteid='master' order by c.listorder desc,c.addtime desc" rows="4"}
				<li><a href="{$r['stype3']}">{str_cut($r['title'],23)}</a></li>
				{/get}
			</ul>
		</div>
	</div>
	<div id="wenjuan" class="s-box">
		<div class="hd">
			<h3><i></i>问卷调查</h3>
			<a href="/vote.php" class="more">&gt;&gt;更多</a>
		</div>
		<div class="bd">
			<ul class="info-list">
                {php $time = date('Y-m-d');}
				{get sql="select * from edufe_investigate where status=99 and siteid='master' and startdate<='$time' and enddate>='$time'" rows="6"}
                                <li><a href="/vote.php?action=show&id={$r['id']}">{str_cut($r['name'],23)}</a></li>
                                {/get}
			</ul>
		</div>
	</div>
</div>
